Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

299
Visualizações
How can i use [display = "none"] when javascript is disabled on client browser?

How can i use this

document.getElementById("loader").style.display = "none";

when javascript is disabled on client browser? I added this w3school loading animation tutorial unto my site but it keep rotating when javascript is disabled on client browser and blocking the

<noscript>Sorry, your browser does not support JavaScript!</noscript>

Should i just create an image and just use z-index: 9999; to declare Sorry, your browser does not support JavaScript! or are they any alternative?

I created a demo page of it what it look like when you have javascript disabled and how it infinitely just rotating and blocking <noscript>. demo page here

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You can set it to display: none; by default, and show it through javascript, so if javascript is disabled, it would not show

about 4 years ago · Juan Pablo Isaza Relatório

0

Just add CSS into noscript tag:

<noscript>
  <style type="text/css">
    selector {
      display: none;
    }
  </style>
</noscript>

If you do the opposite by accessing styling through JS, you will encounter flickering / showing unnecessary elements before script is loaded and executed.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda